/**
 * 列表请求参数
 */
// export interface ListRequestDatas {}

export type ListResult = ApiResponseData<{
  data: DataItem[]
}>

export interface DataItem {
  create_time: string
  delete: number
  id: number
  serial_number: string
  text: string
  title: string
  uid: number
  update_time: string
}

/**
 * 详情请求参数
 */
export interface DetailRequestDatas {
  id: number | string
}

export interface CreateRequestDatas {
  text: string
  title: string
}

export interface UpdateRequestDatas {
  text: string
  title?: string
  id: number | string
}

export interface deleteRequestDatas {
  id: number | string
}

export interface ListParams {
  create_time: string
  isFinish?: number
}

export interface QuoteRecord {
  id: number
  serial_number: string
  text: string
  title: string
  uid: number
  create_time: string
  delete: number
  update_time: string
  company_name: string
  company_id: number
  totalAmount: number
}

export type GetQuoteRecordResponseData = ApiResponseData<QuoteRecord[]>
export type CreateResponseData = ApiResponseData<boolean>
export type UpdateRecordResponseData = ApiResponseData<boolean>
export type deleteRecordResponseData = ApiResponseData<boolean>

export interface updateByCompanyRequestDatas {
  id: number | string
  title: string
  company_name: string
  company_id: number
}
export type updateByCompanyResponseData = ApiResponseData<boolean>

export interface items {
  serialNumber: number
  matter: string
  acceptor: string
  billAmount: string
  points: string
  open: number
  rebate: string
  interestDeduction: string
  checked?: boolean
}

export interface FinishCountParams {
  create_time: string
}

export interface FinishCountItem {
  unfinished: number
  finished: number
  total: number
}
export type FinishCountResponseData = ApiResponseData<FinishCountItem>


export enum ArrayType {
  DISCOUNT = 'discount',
  BUYS = 'buys',
  ALL = 'all'
}
